﻿using LoveEatRabbit.ErrorCode;
using MediatR;

namespace LoveEatRabbit.API.Write.Applications.Commands.Users
{
    /// <summary>
    /// 用户添加方法
    /// </summary>
    public class UserCreatedCommand:IRequest<APIResult<int>>
    {
        /// <summary>
        /// 用户名称
        /// </summary>
        public string UserName { get; set; }
        /// <summary>
        /// 用户密码
        /// </summary>
        public string UserPass { get; set; }
        /// <summary>
        /// 昵称
        /// </summary>
        public string UserNickname { get; set; }
        /// <summary>
        /// 角色编号（外键）
        /// </summary>
        public int RoleId { get; set; }
        /// <summary>
        /// 状态
        /// </summary>
        public bool States { get; set; }
        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime CreatedTime { get; set; }
    }
}
